function createId(maxIdName = 'maxTagId') {
  let id = parseInt(window.localStorage.getItem(maxIdName) || '0');
  id += 1;
  window.localStorage.setItem(maxIdName, JSON.stringify(id));
  return id;
}

export {createId};